<?php

namespace liketp\route\dispatch;

use liketp\route\Dispatch;

class Controller extends Dispatch
{
    public function exec()
    {
        $data = app()->invokeControllerAction($this->dispatch[0], $this->dispatch[1], $this->params);
        return $this->response($data);
    }
}
